﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CP.Entities;
using CP.Repositories.GPM;
using CP.Utility;
using System.IO;
using System.Collections.Specialized;

namespace CP.Controllers.GPM
{
    public class FormAuthController
    {
        FormAuthRepository rep = new FormAuthRepository();
        public IList<User_Group> GetUserGroups()
        {
            return rep.GetUser_Groups("");
        }

        public IList<Webpart> GetAuthedForms(int groupid)
        {
            return rep.GetAuthForms(groupid);
        }

        public IList<Webpart> GetUnAuthedForms(int groupid)
        {
            return rep.GetUnAuthForms(groupid);
        }

        public IList<Module> GetAuthModules(int groupid)
        {
            return rep.GetAuthModules(groupid);
        }

        public IList<Module> GetUnAuthModules(int groupid)
        {
            return rep.GetUnAuthModules(groupid);
        }

        public int FormAuth(int groupid, IList<int> forms)
        {
            return rep.FormAuth(groupid, forms);
        }

        public int FormUnAuth(int groupid, IList<int> forms)
        {
            return rep.FormUnAuth(groupid, forms);
        }
    }
}
